#!/bin/bash

my_array=(d u c "dds")
for((i=0;i<${#my_array[@]};i++))
do
    echo ${my_array[i]};
done;

for i in ${my_array[@]};
do
    echo $i;
done
